package com.yc.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yc.domain.Oprecord;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * @author zwei
 * @create 2024-08-22 20:50
 */
@Mapper
public interface OPrecordDao extends BaseMapper<Oprecord> {
    //查询所有操作记录
    @Select("select * from oprecord")
    public Oprecord[] selectAll();
    //根据id查询操作记录
    @Select("select * from oprecord where id = #{id}")
    public Oprecord selectById(int id);
}
